package com.keba.lamp.complaint.manager.impl;

import com.keba.basic.base.manager.impl.SuperManagerImpl;
import com.keba.basic.database.mybatis.conditions.Wraps;
import com.keba.basic.database.mybatis.conditions.query.LbQueryWrap;
import com.keba.lamp.complaint.entity.ComFileRel;
import com.keba.lamp.complaint.manager.ComFileRelManager;
import com.keba.lamp.complaint.mapper.ComFileRelMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 通用业务实现类
 * 图片扩展表
 * </p>
 *
 * @author chaowu.wang
 * @date 2025-04-19 14:15:06
 * @create [2025-04-19 14:15:06] [chaowu.wang] [代码生成器生成]
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class ComFileRelManagerImpl extends SuperManagerImpl<ComFileRelMapper, ComFileRel> implements ComFileRelManager {

    @Override
    public ComFileRel getByFileId(Long fileId) {
        LbQueryWrap<ComFileRel> queryWrap = Wraps.<ComFileRel>lbQ()
                .eq(ComFileRel::getComFileId, fileId);
        return this.getOne(queryWrap);
    }
}


